<?php
class MyZend_View_Helper_MyIconButton extends Zend_View_Helper_Abstract {
	public function myIconButton($title = '', $imgLink, $link = null) {
		if($link == null) {
			$xhtml = '<img src="' . $imgLink . '" title="' . $title . '">';
		}else {
			$xhtml = ' <a href="' . $link . '">
			              <img src="' . $imgLink  . '" title="' . $title .'" >
			           </a>';
		}
		
	    return $xhtml;
	}
}